import http from '@/common/http/request'
import Vue from 'vue'

const $axios = Object.assign({}, Vue.prototype.$axios, {
  http: http,
  get: http.get,
  post: http.post,
  delete: http.delete,
  put: http.put
})

uni.$axios = $axios

const install = Vue => {
  // #ifndef APP-NVUE
  Vue.prototype.$axios = $axios
  // #endif
}
export default { install }